package com.brillilab.domain.po.hardware;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 锁操作
 * </p>
 *
 * @author WuMenghao
 * @since 2019-05-20
 */
@TableName("lock_operation")
@Data
public class LockOperation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long deviceId;
    /**
     * 锁Id
     */
    @TableField("lock_id")
    private Long lockId;
    /**
     * 实验室Id
     */
    @TableField("lab_id")
    private Long labId;
    /**
     * 实验室成员Id
     */
    @TableField("lab_member_id")
    private Long labMemberId;
    /**
     * 操作类型 1-取用开锁 2-归还开锁
     */
    private Integer operate;
    /**
     * 定时任务的名称
     */
    @TableField("job_name")
    private String jobName;
    /**
     * 定时任务的组
     */
    @TableField("job_group")
    private String jobGroup;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;

}
